{{ if .IsNamedParams }}

    {{ $form := (.Get "form") | default "" }}
    {{ $user := (.Get "user") | default "" }}
    {{ $email := (.Get "email") | default "" }}
    {{ $location := (.Get "location") | default "" }}
    {{ $phone := (.Get "phone") | default "" }}
    {{ $message := (.Get "message") | default "" }}

    {{ $id := (delimit (shuffle (seq 999)) "" | md5) }}

    <div class="shortcode shortcode-form shortcode-{{ ($.Name) }}">
      <form id="form-{{ $id }}" class="ext-google-form" data-google-form="{{ $form }}">
        <div class="form-row">
          <div class="form-group col-lg">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fas fa-user fa-fw"></i></span>
              </div>
              <input type="text" class="form-control ext-form-name" name="entry.{{ $user }}" placeholder='{{ i18n "sc.name" }}' required/>
            </div>
          </div>
          <div class="form-group col-lg">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fas fa-envelope-open-text fa-fw"></i></span>
              </div>
              <input type="email" class="form-control ext-form-email" name="entry.{{ $email }}" placeholder='{{ i18n "sc.email" }}' required/>
            </div>
          </div>
        </div>
        <div class="form-row">
          <div class="form-group col-lg">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fas fa-map-marker-alt fa-fw"></i></span>
              </div>
              <input type="text" class="form-control ext-form-location" name="entry.{{ $location }}" placeholder='{{ i18n "sc.location" }}'/>
            </div>
          </div>
          <div class="form-group col-lg">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fas fa-phone fa-fw"></i></span>
              </div>
              <input type="tel" class="form-control ext-form-phone" name="entry.{{ $phone }}" placeholder='{{ i18n "sc.phone" }}'/>
            </div>
          </div>
        </div>
        <div class="form-row">
          <div class="form-group col-lg">
            <textarea class="form-control ext-form-message" rows="5" name="entry.{{ $message }}" placeholder='{{ i18n "sc.message" }}' required></textarea>
          </div>
        </div>
        <div class="form-row">
          <div class="form-group col-lg text-right">
            <button type="submit" class="btn btn-primary is-label">
              <span><span><i class="fas fa-upload fa-fw"></i></span><span>{{ i18n "sc.submit" }}</span></span>
            </button>
          </div>
        </div>
      </form>
    </div>

{{ else }}

  <div class="alert alert-danger" role="alert">
    <h4 class="alert-heading">[ERROR] {{ .Name | humanize }}</h4>
    <p>Please provide named Parameters.</p>
  </div>

{{ end }}
